package com.template.app.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.cn.template.component.domain.PersistentModel;
import org.cn.template.component.enums.IdType;

/**
 * <b>description</b>：分类模型<br>
 * <b>time</b>：2015-07-09 23:26:04 <br>
 * <b>author</b>：  SongJian
 */
@SuppressWarnings("serial")
public class Category implements PersistentModel{
	public Category(){}
	 /*
	  * 
	  */
	private java.lang.Long cat_id;
	 /*
	  *分类名称 
	  */
	private String cat_name;
	 /*
	  * 
	  */
	private String cat_path;
	 /*
	  *分类父级id 
	  */
	private java.lang.Integer parent_id;
	 /*
	  *分类层级 
	  */
	private Integer zindex;
	 /*
	  *是否有子类,1是0不是 
	  */
	private Byte has_child;
	 /*
	  *'URL' 
	  */
	private String url;
	 /*
	  *分类图标 
	  */
	private String image;
	 /*
	  *排序 
	  */
	private Integer cat_order;

	public java.lang.Long getCat_id() {
		return cat_id;
	}

	public void setCat_id(java.lang.Long cat_id) {
		this.cat_id = cat_id;
	}
	public String getCat_name() {
		return cat_name;
	}

	public void setCat_name(String cat_name) {
		this.cat_name = cat_name;
	}
	public String getCat_path() {
		return cat_path;
	}

	public void setCat_path(String cat_path) {
		this.cat_path = cat_path;
	}
	public java.lang.Integer getParent_id() {
		return parent_id;
	}

	public void setParent_id(java.lang.Integer parent_id) {
		this.parent_id = parent_id;
	}
	public Integer getZindex() {
		return zindex;
	}

	public void setZindex(Integer zindex) {
		this.zindex = zindex;
	}
	public Byte getHas_child() {
		return has_child;
	}

	public void setHas_child(Byte has_child) {
		this.has_child = has_child;
	}
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}
	public Integer getCat_order() {
		return cat_order;
	}

	public void setCat_order(Integer cat_order) {
		this.cat_order = cat_order;
	}
	public Category(Long cat_id, String cat_name)
	{
		super();
		this.cat_id = cat_id;
		this.cat_name = cat_name;
	}

	/*
	 * 下面3个方法一般用不着
	 */
	@Override
	public int getIdType()
	{
		return IdType.INT.getIdType();
	}
	
	@Override
	public String toString()
	{
		return ToStringBuilder.reflectionToString(this);
	}
	
}
